package luogu;
import java.util.Scanner;

public class Main7 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int [] arr = new int[n];
        for (int i = 0; i < arr.length; i++) {
             arr[i] = sc.nextInt();
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i <arr.length ; i++) {
            int temp = 0;
            for (int j = 0; j <i; j++) {
                if (arr[i]>arr[j]){
                    temp++;
                }
            }
            //i是小鱼的位置  j是位于i的小鱼前面的小鱼
            sb.append(temp);
            if (i!=n-1){
                sb.append(" ");
            }
        }
        System.out.println(sb.toString());
    }
}
